<cfcomponent output="false">
	
	<!--- --->
	
	<cffunction name="renderFund" access="public" output="true" returntype="string">
		
		<cfset var local = {} />
		
		<cfset local.percentage = randrange(1,100) />
		
		<cfset local.amount = randrange(1,100) * 100 />
		
		<cfsavecontent variable="local.result">
			<div class="promo promo-fund">
				<div class="promo-fund-progress">
					<div class="promo-fund-progress-bar" style="width:#local.percentage#%">
						&nbsp;
					</div>
				</div>
				<div class="promo-fund-title">
					This is a Featured Fund
				</div>
				#$.render.img(path='/y-u-no.jpg',class='promo-photo')#
				<div class="promo-fund-detail">
					#$.format.money(local.amount * local.percentage / 100)# / #$.format.money(local.amount)# raised
				</div>
			</div>
		</cfsavecontent>
		
		<cfreturn $.render.clean(local.result) />
		
	</cffunction>
	
	<!--- --->
	
	<cffunction name="renderTip" access="public" output="true" returntype="string">
		
		<cfset var local = {} />
		
		<cfsavecontent variable="local.result">
			<div class="promo promo-tip">
				<span class="important">Henry M</span> from Missouri used Fundr to raise <span class="important">$4,335</span> for his college tuition.
			</div>
		</cfsavecontent>
		
		<cfreturn $.render.clean(local.result) />
		
	</cffunction>
	
	<!--- --->
	
</cfcomponent>